package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2021/11/22 16:55
 */
@RequestMapping("json")
@RestController
public class JsonController {

    @RequestMapping("hello1")
    public BaseRespVo hello1() {
        return BaseRespVo.ok("json hello1");
    }

    @RequestMapping("hello2")
    public BaseRespVo hello2() {
        return BaseRespVo.ok("json hello2");
    }
}
